﻿using IDAdmin.Lib.DataLayer;
using IDAdmin.Pages;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IDAdmin.Common
{
    public class TransferLevelVN : IJob
    {
        public void Execute(IJobExecutionContext context)
        {
            List<Server> gameServerList = new List<Server>();
            gameServerList = WebDB_N.ListServer().ToList();
            List<DateTime> dateTimeList=new List<DateTime>();
            DateTime date= DateTime.Now.AddDays(-1);
            dateTimeList.Add(date);
            foreach (var server in gameServerList)
            {
                LevelWebDB lWebDBVN = new LevelWebDB();
                lWebDBVN.tableName = "Level"+server.tablezone;
                lWebDBVN.dateTimeList = dateTimeList;
                lWebDBVN.continueTransfer();
                lWebDBVN.work();
            }
        }
    }
}